<div class="block">
<?php if ( strcmp($updated, 'true') == 0 ): ?>
<p>The site &ldquo;<strong><?php echo $site->site_name; ?></strong>&rdquo; has been added successfully. One step is still needed, before Cinnamon started to gather statistics about this website. Copy and Paste the following line of code in the <code>head</code> tag.
<?php else: ?>
<p>Cinnamon needs a piece of code (tracking code) to be added in &ldquo;<strong><?php echo $site->site_name; ?></strong>&rdquo;, in order to gather statistics about this website. Copy and Paste the following line of code in the <code>head</code> tag.
<?php endif; ?>

<form name="codeForm" action="" id="codeForm">
<input type="text" name="code" id="codeInput" size="120" value='<script type="text/javascript" src="<?php echo CSEURL; ?>/cse-javascript.php?site_id=<?php echo $site->site_id; ?>"></script>'  />
<script type="text/javascript">
	$('input#codeInput').click( function() {
		document.getElementById('codeInput').focus();
		document.getElementById('codeInput').select();
	} );
</script>

<p>Please note, that in most of the cases &ndash; when you use a <acronym title="Content Management System">CMS</acronym> for example &ndash; you don&rsquo;t have to add that line on every single file. In fact, that would be wrong and you should add it only in your header template.</p>

<p>If you don&rsquo;t know how to perform the procedure mentioned above, an explicit guide has been prepared for you. In case that you are still having problem feel free to <a href="http://www.thecinnamon.org/support">visit our forums</a> for extra assistance.</p>

<ol>
	<li>Connect to your web server through FTP.</li>
	<li>Locate the pages that you would like Cinnamon to keep an eye on them.</li>
	<li>Download and backup those files on your computer.</li>
	<li>Use a simple text-editor to open those files.</li>
	<li>Locate the <code>&lt;/head&gt;</code> tag and insert the line of code that mentioned above before the <code>&lt;/head&gt;</code> tag.</li>
	<li>Save and upload the files back to their original locations.</li>
	<li>That's all! From now on you should be able to <a href="<?php echo CSEURL; ?>">view the gathered statistics</a>. If you do not, please report the problem at the <a href="http://www.thecinnamon.org/support">support forums</a>.</li>
</ol>
<p class="buttons"><button onclick="location.href='<?php echo CSEURL; ?>/admin/sites.php';">Ok, Done!</button></p>
</div>